package com.stu.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;

@Document(indexName = "thunder")
public class Pro {

    @Id
    private Integer id;

    @Field(type = FieldType.Text, analyzer = "ik_smart", searchAnalyzer = "ik_max_word")
    private String productName;

    @Field(type = FieldType.Text, analyzer = "ik_smart", searchAnalyzer = "ik_max_word")
    private String productBrand;

    @Field(type = FieldType.Keyword)
    private String productType;

    @Field(type = FieldType.Float)
    private Float productPrice;

    @Field(type = FieldType.Keyword)
    private String productColor;

    @Field(type = FieldType.Keyword)
    private String productSize;

    @Field(type = FieldType.Keyword, name = "productMainimg")
    private String productMainImg;

    @Field(type = FieldType.Integer)
    private Integer productCount;

    @Field(type = FieldType.Double)
    private BigDecimal productPoint;

    @Field(type = FieldType.Keyword)
    private String productArea;

    @Field(type = FieldType.Integer)
    private Integer productSold;

    @Field(type = FieldType.Keyword)
    private String xx;

    @Field(type = FieldType.Integer)
    private Integer yy;

    @Field(type = FieldType.Integer)
    private Integer productVersion;

    @Field(type = FieldType.Integer)
    private Integer productStatus;

    public Pro() {}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductBrand() {
        return productBrand;
    }

    public void setProductBrand(String productBrand) {
        this.productBrand = productBrand;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public Float getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Float productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductColor() {
        return productColor;
    }

    public void setProductColor(String productColor) {
        this.productColor = productColor;
    }

    public String getProductSize() {
        return productSize;
    }

    public void setProductSize(String productSize) {
        this.productSize = productSize;
    }

    public String getProductMainImg() {
        return productMainImg;
    }

    public void setProductMainImg(String productMainImg) {
        this.productMainImg = productMainImg;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public BigDecimal getProductPoint() {
        return productPoint;
    }

    public void setProductPoint(BigDecimal productPoint) {
        this.productPoint = productPoint;
    }

    public String getProductArea() {
        return productArea;
    }

    public void setProductArea(String productArea) {
        this.productArea = productArea;
    }

    public Integer getProductSold() {
        return productSold;
    }

    public void setProductSold(Integer productSold) {
        this.productSold = productSold;
    }

    public String getXx() {
        return xx;
    }

    public void setXx(String xx) {
        this.xx = xx;
    }

    public Integer getYy() {
        return yy;
    }

    public void setYy(Integer yy) {
        this.yy = yy;
    }

    public Integer getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(Integer productVersion) {
        this.productVersion = productVersion;
    }

    public Integer getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }

    @Override
    public String toString() {
        return "Pro{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", productBrand='" + productBrand + '\'' +
                ", productType='" + productType + '\'' +
                ", productPrice=" + productPrice +
                ", productColor='" + productColor + '\'' +
                ", productSize='" + productSize + '\'' +
                ", productMainImg='" + productMainImg + '\'' +
                ", productCount=" + productCount +
                ", productPoint=" + productPoint +
                ", productArea='" + productArea + '\'' +
                ", productSold=" + productSold +
                ", xx='" + xx + '\'' +
                ", yy=" + yy +
                ", productVersion=" + productVersion +
                ", productStatus=" + productStatus +
                '}';
    }
}
